package com.tree.thrive.adapter.http.region;

import com.tree.thrive.adapter.http.region.response.RegionDTOItem;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Auther: cheng.tang
 * @Date: 2023/8/30
 * @Description: top-tree
 */
@FeignClient(name = "RegionFeign", url = "https://zkh-gbb-website-server-pro.gongbangbang.com")
public interface RegionFeign {

    @Schema(title = "查询全部行政区", description = "查询全部行政区")
    @GetMapping("/regionals/all")
    List<RegionDTOItem>  queryAllRegion();

}
